package cn.List;

import java.util.ArrayList;

public class ForDemo {
	public static void main(String[] args) {
		
		String[] str  = {"ab", "cd", "ef"};
		
		for(String s : str)
			System.out.println(s);
		
		System.out.println("------------");
		
		ArrayList<String> al = new ArrayList<String>();
		al.add("aaa");
		al.add("bbb");
		al.add("ccc");
		
		
		for(String a:al)
			System.out.println(a);
	}
}
